<script setup>
import { ref } from "vue";
import { useRouter, useRoute } from "vue-router";
// import { searchTopics } from "@/api/topic";
import topicContentStyle from "@/components/topicContentStyle.vue";
const route = useRoute();
const router = useRouter();
const QueryValue = ref(route.query.keyword);
const queryTopic = ref("queryTopic");

const onClickLeft = () => {
  router.back();
};
</script>
<template>
  <div class="search-list">
    <van-nav-bar
      title="搜索结果"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    />
    <topicContentStyle :model="queryTopic" :query="QueryValue" />
  </div>
</template>
<style lang="less" scoped></style>
